package com.kwan.x_im.data.db;



import java.util.List;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;

import static androidx.room.OnConflictStrategy.IGNORE;

/**
 * @author kwan
 * @date 2023/2/13 11:33
 * @Describe
 */
@Dao
public interface XDao {

//	@Insert(onConflict = IGNORE)
//	void insertBook(BookBean... books);
//
//	@Update
//	void updateBooks(BookBean... books);
//
//	@Delete
//	void deleteBook(BookBean... books);
//
//	@Query("DELETE FROM book_table")
//	void deleteAllUser();
//
//	@Query("SELECT * FROM book_table ORDER BY ID ASC")
//	List<BookBean> getAllBooks();
//
//
//	//select * from stu where score in (70,80,90)
//	@Query("SELECT * FROM book_table WHERE id in(:bid)")
//	List<BookBean> getAllBooks(long... bid);
//
//	@Query("SELECT * FROM chapter_table WHERE :bid=bookId ORDER BY `index` ASC")
//	List<Chapter> getChapter(long bid);
//
//	@Insert(onConflict = IGNORE)
//	void insertChapter(Chapter... chapters);
//
//	@Update
//	void updateChapters(Chapter... chapters);
//
//	@Insert(onConflict = OnConflictStrategy.REPLACE)
//	void updateHistory(BookHistory chapters);
//
//	@Query("SELECT * FROM history_table ORDER BY timeStamp DESC")
//	List<BookHistory> getAllHistory();
//
//	@Delete
//	void deleteHistory(BookHistory... books);
//
//
//	@Insert(onConflict = IGNORE)
//	void insertChapter(BookLibrary... chapters);
//
//	@Query("SELECT * FROM book_library")
//	List<BookLibrary> getAllBookLibraries();

}
